<?php

use Illuminate\Database\Capsule\Manager as Capsule;
//自动加载

require_once './vendor/autoload.php';

//eloquent orm

$capsule = new Capsule;
$database = require_once './config/database.php';
$capsule->addConnection($database);

$capsule->bootEloquent();
//路由
require_once './config/routes.php';

